package com.aegean.MonitorExamSYS.tool.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.tool.business.ToolBusiness;
import com.aegean.MonitorExaxSYS.model.ExamInfo;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ShowExamInfoForPublic")
@Scope("prototype")
public class ShowExamInfoForPublic extends ActionSupport {
	@Resource
	ToolBusiness business;
	private ExamInfo examInfo;
	private int exam_Id;

	public ExamInfo getExamInfo() {
		return examInfo;
	}

	public void setExamInfo(ExamInfo examInfo) {
		this.examInfo = examInfo;
	}

	public int getExam_Id() {
		return exam_Id;
	}

	public void setExam_Id(int exam_Id) {
		this.exam_Id = exam_Id;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		examInfo=business.searchExamInfo(exam_Id);
		return SUCCESS;
	}

}
